<?php defined('SYSPATH') or die('No direct script access.');

class Request extends Kohana_Request {

    protected static $curr;


    public static function g($var, $alt=null){
        if(is_array($alt) && isset($alt[$var])){
            return $alt[$var];
        }

        if(isset($_POST[$var])){
            return self::current()->post($var);
        }else if(isset($_GET[$var])){
            return $_GET[$var];
        }else{
            return null;
        }
        
        
    }

}
